package DAL;
/**hofit**/
import java.util.ArrayList;

public class Member_DAL {
	private String userName;
	private String userLastName;
	private String email;
	private String status;
	private String phoneNumber;	
	
	/*
	 * convert array list to SysUser class
	 */
	/**
	 * 
	 * @param arrMember
	 * Constructor
	 */
	public Member_DAL (ArrayList<String> arrMember)
	{
		super();
		this.userName = arrMember.get(0);
		this.userLastName = arrMember.get(1);
		this.email = arrMember.get(2);
		this.status = arrMember.get(3);
		this.phoneNumber = arrMember.get(4);
		
	}
	
	/**
	 * 
	 * @param userName
	 * @param userLastName
	 * @param email
	 * @param status
	 * @param phoneNumber
	 * Constructor
	 */
	public Member_DAL(String userName, String userLastName, String email,
			String status, String phoneNumber) {
		super();
		this.userName = userName;
		this.userLastName = userLastName;
		this.email = email;
		this.status = status;
		this.phoneNumber = phoneNumber;
	}


	/**
	 * 
	 * @param member
	 * @return member dal
	 * convert SysUser class to array list
	 */
	public static ArrayList<String> MemberToArray(Member_DAL member)
	{
		ArrayList<String> arrMember = new ArrayList<String>();
		
		arrMember.add(member.userName);
		arrMember.add(member.userLastName);
		arrMember.add(member.email);
		arrMember.add(member.status);
		arrMember.add(member.phoneNumber);
		return arrMember;
	}
	/**
	 * 
	 * @return get user Name
	 */
	public String getUserName() {
		return userName;
	}
	/**
	 * 
	 * @param userName
	 * set user Name
	 */
	public void setUserName(String userName) {
		this.userName = userName;
	}
	/**
	 * 
	 * @return  get User Last Name
	 */
	public String getUserLastName() {
		return userLastName;
	}
	/**
	 * 
	 * @param userLastName
	 * set User Last Name
	 */
	public void setUserLastName(String userLastName) {
		this.userLastName = userLastName;
	}
	/**
	 * 
	 * @return get email
	 */
	public String getEmail() {
		return email;
	}
	/**
	 * 
	 * @param email
	 *  set email
	 */
	public void setEmail(String email) {
		this.email = email;
	}
	/**
	 * 
	 * @return get Status
	 */
	public String getStatus() {
		return status;
	}
	/**
	 * 
	 * @param status
	 * set Status
	 */
	public void setStatus(String status) {
		this.status = status;
	}
	/**
	 * 
	 * @return get Phone Number
	 */
	public String getPhoneNumber() {
		return phoneNumber;
	}
	/**
	 * 
	 * @param phoneNumber
	 * set Phone Number
	 */
	public void setPhoneNumber(String phoneNumber) {
		this.phoneNumber = phoneNumber;
	}
	
	

}